﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Sample.Collection
{
    class Enumerable
    {
        List<object> _list;

        public Enumerable()
        {
            _list = new List<object>(new object[] { 1, 2, 3 });
        }

        public IEnumerator GetEnumerator()
        {
            for (int i = 0; i < _list.Count; i++)
            {
                yield return _list[i];
            }
        }
    }
}
